home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / utils / turnkey.arc / 1TURNKEY.DOC < prev    next >
Text File  |  1987-04-06  |  3KB  |  87 lines

  1. **************************** AUTO RUN ANY PROGRAM ****************************
  2.  
  3.  
  4.  
  5.  
  6.  Date: 16 Dec 86 20:21:47 GMT
  7.  From: mnetor!utzoo!utcs!utfyzx!oscvax!ron@seismo.css.gov
  8.  Subject: Autostarting programs after GEM has initialized (AUTO-ST)
  9.  
  10.  This is a little kludge that we whipped up at the Science Centre
  11.  to autostart a program after the ST has fully initialized. It isn't
  12.  pretty but it works !!!
  13.  
  14.  Ron Janzen (ron@oscvax.UUCP)
  15.  Ontario Science Centre, Toronto
  16.  
  17.  ----------------------------------------------------------------------------
  18.  
  19.  As many of us probably know (by experience or word of mouth) programs
  20.  that are located in the AUTO folder are executed before the ST is fully
  21.  initialized.  This means that some programs that work perfectly from the
  22.  desktop will not work if they are put into the AUTO folder.  Since we
  23.  are in a museum environment, the exhibit application has to start
  24.  automatically every morning when the power is turned on to all the
  25.  exhibits.  Since one program that we had written didn't work when it was
  26.  put into the AUTO folder we had to come up with another method.  This is
  27.  what I came up with.  It is an amusing kludge but it is the only thing
  28.  that worked reasonably well.  Basically what happens is that we fool the
  29.  GEM desktop into thinking there was a double click from the mouse.  If
  30.  the cursor happens to be over an application at the time, that
  31.  application will start up.  This is implemented as a desk accessory.
  32.  
  33.  How to create a floppy that will automatically start a program from the
  34.  desktop:
  35. ----------------------------------------------------------------------------
  36.  1) Create a bootable floppy with the application you want to autostart.
  37.  
  38.  2) Copy 1TURNKEY.ACC onto the floppy and rename it to 1TURNKEY.PRG .
  39.  
  40.  3) Set up your desktop so that the application is under the bootup cursor
  41.     position (the cursor is in the middle of the screen when the GEM desktop
  42.     starts).
  43.  
  44.  4) Save the desktop.
  45.  
  46.  5) Reboot the ST with this floppy to verify that the cursor is over the
  47.     application after the desktop has booted. If it is not, go back to
  48.     step 3 and make any required adjustments (I told you it was kludgy).
  49.  
  50.  6) Rename 1TURNKEY.PRG back to 1TUNRKEY.ACC
  51.  
  52.  7) Now when you boot off this floppy the application should automatically
  53.     start from the desktop.
  54. ------------------------------------------------------------------------------
  55.  
  56. I've included a DESKTOP.INF file that places the window for drive A: in the
  57. correct location.
  58.  
  59. This is what the Directory for drive A: should look like.
  60.  
  61. 1TURNKEY.ACC
  62. DESKTOP.INF
  63. FILLER_1
  64. FILLER_2
  65. FILLER_3
  66. FILLER_4
  67. <<<<<<   Your Program Goes Here  >>>>>>>>
  68.  
  69. The Program that is to be Automatically Run MUST be in the 7th Position 
  70. on the Directory Listing.
  71.  
  72. FILLER_1 thru FILLER_4 Can be any type of File or Program. They are simply
  73. Filling Positions on the Directory, in order to get the Program that is to
  74. Automatically Run into the 7th Position.
  75.  
  76.  
  77. NOTE: This Accessory only Works in Medium or Low Resolutions.
  78.       It Doese'nt seem to work with Monochrome Systems.
  79.  
  80. -----------------------------------------------------------------------------
  81.  
  82. Hey   It WORKS !!!!!
  83.  
  84.  
  85.  
  86.  
  87.